Skip to content

AutoSuspendHelper class

Attributes: [DebuggerDisplay("AutoSuspendHelper")]

Defined in

Namespace: ReactiveUI.Reactive Assembly: ReactiveUI.Reactive.dll Full name: ReactiveUI.Reactive.AutoSuspendHelper<T> Modifiers: public

Summary

View source

Bridges iOS lifecycle notifications into SuspensionHost so applications can persist and restore state without manually wiring UIKit events.

Applies to

net10.0-ios26.0, net10.0-macos26.0, net10.0-maccatalyst26.0, net10.0-tvos26.0

Class hierarchy
classDiagram
class AutoSuspendHelper~T~
class IEnableLogger {
    <>
}
IEnableLogger <|.. AutoSuspendHelper~T~
class IDisposable {
    <>
}
IDisposable <|.. AutoSuspendHelper~T~

Implements: IEnableLogger, IDisposable

Remarks

Instantiate AutoSuspendHelper inside your UIApplicationDelegate and forward the FinishedLaunching, OnActivated, and DidEnterBackground events to the helper. The helper updates the shared ISuspensionHost observables and takes care of requesting background time when persisting application state.

Constructors

NameSummary
.ctorInitializes a new instance of the [AutoSuspendHelper](# class.

Properties

NameSummary
LaunchOptionsGets the launch options captured from the most recent call to [FinishedLaunching](# Keys are...

Methods

NameSummary
FinishedLaunchingNotifies the helper that launching finished so it can propagate [IsResuming](#
OnActivatedNotifies the helper that OnActivated occurred.
DidEnterBackgroundNotifies the helper that DidEnterBackground was raised so that persistence can begin.
Dispose
Inherited members